package dongshi.daddy.adapter;

import dongshi.daddy.adapter.classadapter.TargetClassAdapter;
import dongshi.daddy.adapter.objectadpater.TargetObjectAdapter;
import org.junit.Test;

public class TestCases {
    @Test
    public void classadapter() {
        Target target = new TargetClassAdapter();
        target.tellMeYourDream("世界和平,见到想见的人,平平淡淡");
    }

    @Test
    public void objectadapter() {
        Target target = new TargetObjectAdapter(new AdapteeImpl());
        target.tellMeYourDream("世界和平,见到想见的人,平平淡淡");
    }
}
